package com.gyc.simple.sysuser.thread;

public class ThreadState implements Runnable {

    @Override
    public void run() {
        while (true){
            System.out.println("自定义线程执行-------");

        }
    }

    public static void main(String args[]){

        Thread thread = new Thread(new ThreadState());

        thread.start();

        while (true){
            System.out.println("----主线程执行-------");
        }
    }
}
